package com.solution.admin.order.dao;

import java.util.List;
import java.util.Map;

import com.solution.admin.order.entity.OrderLogEntity;
import com.solution.common.dao.BaseDao;
import com.solution.common.page.PageBean;
import com.solution.common.page.PageParam;

/**
 * 订单日志流水DAO接口
 * @author lilp
 * @date 2017-09-18 19:25:36
 */
public interface OrderLogDao extends BaseDao<OrderLogEntity> {
	
	/**
	 * 保存订单日志流水
	 * @param orderLogEntity
	 * @return
	 * @author lilp
	 * @date 2017-09-18 19:25:36
	 */
	public long saveOrderLog(OrderLogEntity orderLogEntity);

	/**
	 * 分页查询订单日志流水信息
	 * @param pageParam 分页对象
	 * @param orderLog 分页参数
	 * @return PageBean 分页参数及数据
	 * @author lilp
	 * @date 2017-09-18 19:25:36
	 */
	public PageBean listOrderLogPage(PageParam pageParam, Map<String, Object> param);

	/**
	 * 更新订单日志流水
	 * @param orderLogEntity
	 * @return
	 * @author lilp
	 * @date 2017-09-18 19:25:36
	 */
	public int updateOrderLog(OrderLogEntity orderLogEntity);


	/**
	 * 删除订单日志流水角色
	 * @param id
	 * @return
	 * @author lilp
	 * @date 2017-09-18 19:25:36
	 */
	public int deleteOrderLogById(Long id);
	
	/**
	 * 根据订单日志流水类型获取订单日志流水
	 * @param param
	 * @return
	 * @author lilp
	 * @date 2017-09-18 19:25:36
	 */
	public List<OrderLogEntity> listOrderLog( Map<String, Object> param);
}
